﻿<%@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="Mantenedores_MantenedorProveedor, App_Web_2kwec84m" title="Mantenedor Proveedor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contenido" Runat="Server">
    <asp:Panel ID="pnlMantenedorProveedor" runat="server" GroupingText="Mantenedor de Proveedor"
        Height="100%">
    <table>
        <tr>
            <td style="text-align: right">
                Rut :</td>
            <td style="text-align: left">
                <asp:TextBox ID="txbRut" runat="server"></asp:TextBox>
                *</td>
            <td style="text-align: left">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txbRut"
                    ErrorMessage="Requerido" ValidationGroup="ValidaCampos"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="text-align: right">
                Dirección :</td>
            <td style="text-align: left">
                <asp:TextBox ID="txbDireccion" runat="server"></asp:TextBox>
                *</td>
            <td style="text-align: left">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txbDireccion"
                    ErrorMessage="Requerido" ValidationGroup="ValidaCampos"></asp:RequiredFieldValidator></td>
            
        </tr>
        <tr>
            <td style="text-align: right">
                E-Mail :</td>
            <td style="text-align: left">
                <asp:TextBox ID="txbMail" runat="server"></asp:TextBox>
                *</td>
            <td style="text-align: left">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txbMail"
                    ErrorMessage="Requerido" ValidationGroup="ValidaCampos"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="text-align: right">
                    Contacto :</td>
                <td style="text-align: left">
                    <asp:TextBox ID="txbContacto" runat="server"></asp:TextBox>
                    *</td>
            <td style="text-align: left">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txbContacto"
                    ErrorMessage="Requerido" ValidationGroup="ValidaCampos"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="text-align: right">
                Razón Social :</td>
            <td style="text-align: left">
                <asp:TextBox ID="txbRazonSocial" runat="server"></asp:TextBox>
                *</td>
            <td style="text-align: left">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txbRazonSocial"
                    ErrorMessage="Requerido" ValidationGroup="ValidaCampos"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="text-align: right">
                Giro :</td>
            <td style="text-align: left">
                <asp:TextBox ID="txbGiro" runat="server"></asp:TextBox>
                *</td>
            <td style="text-align: left">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txbGiro"
                    ErrorMessage="Requerido" ValidationGroup="ValidaCampos"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="text-align: right">
                Teléfono :</td>
            <td style="text-align: left">
                <asp:TextBox ID="txbTelefono" runat="server"></asp:TextBox>
                *</td>
            <td style="text-align: left">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txbTelefono"
                    ErrorMessage="Requerido" ValidationGroup="ValidaCampos"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td colspan="3" style="text-align: right">
                <br />
        <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" OnClick="btnCancelar_Click" CssClass="botonCancelar" /><asp:Button ID="btnEliminar" runat="server" Text="Eliminar" OnClick="btnEliminar_Click" CssClass="botonEliminar" /><asp:Button ID="btnModificar" runat="server" Text="Modificar" OnClick="btnModificar_Click" CssClass="botonModificar" /><asp:Button ID="btnNuevo"
            runat="server" Text="Nuevo" OnClick="btnNuevo_Click" CssClass="botonAceptar" /><asp:Button ID="btnAceptar" runat="server" Text="Aceptar" OnClick="btnAceptar_Click" CssClass="botonNuevo" ValidationGroup="ValidaCampos" /></td>
        </tr>
        <tr>
            <td colspan="3">
                <br />
                <hr />
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3" style="text-align: center">
    <asp:GridView ID="gdvProveedor" CssClass="GridViewStyle" runat="server" AutoGenerateColumns="False" DataSourceID="odsProveedor" DataKeyNames="Id" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" AllowPaging="True" Width="100%">
        <Columns>
            <asp:BoundField DataField="Rut"  HeaderText="Rut" SortExpression="Rut" >
                <ItemStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="RazonSocial" HeaderText="Raz&#243;n Social" SortExpression="RazonSocial" >
                <ItemStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:CommandField ShowSelectButton="True" />
        </Columns>
        <RowStyle CssClass="RowStyle" />
        <PagerStyle CssClass="PagerStyle" />
        <HeaderStyle CssClass="HeaderStyle" />
        <AlternatingRowStyle CssClass="AltRowStyle" />
        <SelectedRowStyle CssClass="SelectedRowStyle" />
    </asp:GridView>
            </td>
        </tr>
    </table>
        <br />
        <br />
        <br />
    </asp:Panel>
    &nbsp;
    <asp:ObjectDataSource ID="odsProveedor" runat="server" DataObjectTypeName="EYDIngenieria.ERP.ObjetosDeNegocio.Dominio.Proveedor"
        DeleteMethod="Eliminar" InsertMethod="Agregar" SelectMethod="Listar" TypeName="EYDIngenieria.ERP.Aplicacion.Mantenedores.MantenedorProveedor"
        UpdateMethod="Modificar"></asp:ObjectDataSource>
    <br />
    <br />
    <br />
</asp:Content>

